import React, { Fragment, Suspense } from "react"
import { Button } from "antd"
import "./App.css"
import { useRoutes, Link, Route } from "react-router-dom";
import routesConfig from "./router/index"
//引入自己定义的守卫Hook
import UseRouteWithGuard from "./router/UseRouteWithGuard";
import Home from "./Home/index"

const App = () => {
  let Element = UseRouteWithGuard('wf-token', routesConfig)
  return (
    <Fragment>
      <Home>
        {Element}
      </Home>
    </Fragment>
  )
}

export default App;
